package com.training.java.core.unittest;

import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorTest {
	@Test
	public void testAdd() {

		Calculator calc = new Calculator();
		int sum = calc.add(5, 3);
		TestCase.assertEquals(8, sum);
		System.out.println("Sum is " + sum);

	}

	@Test
	public void testsubtract() {

		Calculator calc = new Calculator();
		int result = calc.subtract(56, 16);
		TestCase.assertEquals(40, result);
		System.out.println("Result of Subtraction is " + result);

	}

	@Test
	public void testmultiply() {

		Calculator calc = new Calculator();
		int result = calc.multiply(7, 5);
		TestCase.assertEquals(35, result);
		System.out.println("Result of multiplication is " + result);

	}
}
